<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>搜索结果</title>
#parse("templet/js.html")
#parse("templet/css.html")
</head>
<body>
#parse("templet/navbar.html")

<div class="container-fluid">
    <div class="row">
        <div class="col-lg-1">
        </div>
        <div class="col-lg-10">
            <div class="row">
                <div class="col-lg-9">
                    <div class="page-header">
                        <h1>
                           	$!msg
                        </h1>
                    </div>	
					#if ($page.tList) <!--判断集合为空的方法-->
						
					#set($documentList = $page.tList)
						
                    #foreach($document in $documentList)
                        <div class="thumbnail">
                            <div class="caption">
								
                                <h3>
                                    $document.title
                                </h3>
                                
									#set($str=$document.content)
                                    #if($str.length()>400)
										#set($str=$str.substring(0,400))
										#set($getStr = $str.replaceAll("<[.[^<]]*>",""))
										#set($getStr = $getStr.replaceAll("<[.[^<]]*",""))
										
										<p>$getStr</p>
									#else
										<p>$!document.content</p>
									#end
                                
                                <p>
                                    <a class="btn btn-primary" href="/document?method=show&docid=$document.docid">浏览</a> 
									
									<a class="btn" href="#">分享</a>
                                </p>
                            </div>
                        </div>
					#end
					
					#parse("templet/pager.html")
					
					#end
                </div>
				

                <div class="col-lg-3">
                </div>


            </div>
        </div>
        <div class="col-lg-1">
        </div>
    </div>
</div>


</body>
</html>